//
//  YTCountryCodeCell.m
//  YiTuUserClient
//
//  Created by 石少庸 on 2017/2/22.
//  Copyright © 2017年 YiTu. All rights reserved.
//

#import "YTCountryCodeCell.h"
#import "YTCountryCodeModel.h"

@interface YTCountryCodeCell ()

@property (weak, nonatomic) IBOutlet UILabel *cnCountryName;
@property (weak, nonatomic) IBOutlet UILabel *enCountryName;
@property (weak, nonatomic) IBOutlet UILabel *countryCode;

@end

@implementation YTCountryCodeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(YTCountryCodeModel *)model {
    _model = model;
    _cnCountryName.text = _model.nameChs;
    _enCountryName.text = _model.nameEn;
    _countryCode.text = _model.areaCode;
}

- (void)prepareForReuse {
    [super prepareForReuse];
    _enCountryName.text = nil;
    _cnCountryName.text = nil;
    _countryCode.text = nil;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
